package com.wyg.epdata.controller;


import com.wyg.epdata.mapper.DataResultBioMapper;
import com.wyg.epcommonbase.common.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author WangYongGan
 * @since 2022-04-23
 */
@Api(tags = "BIO标注")
@RestController
@RequestMapping("/dataResultBio")
public class DataResultBioController {
    @Autowired
    DataResultBioMapper baseMapper;

    @ApiOperation("获得Bio")
    @GetMapping("getBIOById/{id}")
    public ApiResult getBIOById(@PathVariable("id") Integer id) {
        return ApiResult.ok().data(baseMapper.selectById(id).getBio());
    }
}

